﻿using EnvDTE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace Axiom.CodeManifold
{
	internal static class CodeElementExtensions
	{
		public static void AutoComment(this CodeClass @class)
		{
			foreach (CodeElement element in @class.Children)
			{				
				switch (element.Kind)
				{
					case vsCMElement.vsCMElementFunction:
						(element as CodeFunction).AutoComment();
						break;
					case vsCMElement.vsCMElementProperty:
						(element as CodeProperty).AutoComment();
						break;
					default:
						break;
				}
			}
		}
	}
}
